#pragma once


#include "common.h"

class MPLAYER_API CMediaInfo
{
	CMediaInfo(void);
	ULONGLONG		m_nLength;
public:
	CMediaInfo(const char *fname);
	~CMediaInfo(void);

	int		GetFrames() const;
	ULONG64	GetSeconds() const;
	int		GetHeight() const;
	int		GetWidth() const;
	float		GetFps() const;
	int		GetChannel() const;
	int		GetAspect() const;
	int		GetBitrate() const;
	char *	GetVCodec() const;	//fourcc
	char *	GetACodec() const;	//fourcc
	int		GetSamplerate() const;//audio samplerate
	int		GetLength() const;	//in seconds

protected:

	st_FileInfo m_fileinfo;

};
